package com.tools;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CheckPhone {

    //手机格式判断
    public static boolean isMobileNO(String s) {
        Pattern p = Pattern.compile("^(13[0-9]|14[57]|15[0-35-9]|17[6-8]|18[0-9])[0-9]{8}$");
        Matcher m = p.matcher(s);
        return m.matches();
    }

}
